package cn.observer;

/**
 * Created by jt on 2018/3/22.
 */
public class Test {
    public static void main(String[] args) {
        TeacherSubject teacher = new TeacherSubject() ;
        StudentObserver zhangsan = new StudentObserver("张三",teacher) ;
        StudentObserver lisi = new StudentObserver("李四",teacher) ;
        StudentObserver wangwu = new StudentObserver("王五",teacher) ;

        teacher.setHomework("第二页第六题");
        teacher.setHomework("第三页第七题");
        teacher.setHomework("第五页第八题");
    }
}
